package com.xiyi.shouxin.entity.admin;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import lombok.Data;

@Data
@Table(value = "admin")
public class Admin {
    @Id
    @Column(value = "id")
    private Long id;
    @Column(value = "nickname")
    private String nickName;

    @Column(value = "account")
    private String account;
    @Column(value = "password")
    private String password;
    @Column(value = "role_id")
    private Long roleId;
    /*
     * 0为关闭,1为开启
     */
    @Column(value = "is_delete")
    private String isDelete;

}
